import 'package:flutter_douban/model/user_model.dart';
import 'package:json_annotation/json_annotation.dart';
import 'cookstep_list_model.dart';
import 'major_list_model.dart';
import 'nutrition_facts_model.dart';
part 'recipe_big_model.g.dart';

@JsonSerializable()
class RecipeBigModel {

  /// as
  int? as;
  /// 是否收藏 0未收藏 1收藏
  int? collect_status;
  /// 评论总数
  int? comments_count;
  /// 评论总数字符串
  String? comments_count_text;
  /// comments_preceded
  int? comments_preceded;
  /// 做饭级别
  String? cook_difficulty;
  /// 做饭级别图片
  String? cook_difficulty_image;
  /// 做饭级别
  String? cook_difficulty_text;
  /// 做饭id
  String? cook_id;
  /// 做饭标签
  List? cook_tags;
  /// 做饭时长
  String? cook_time;
  /// 做饭步骤
  List<CookStepListModel>? cookstep;
  /// 做饭标题
  String? cookstory;
  /// 创建时间
  String? create_time;
  /// 学做数量
  int? dish_count;
  /// 学做数量字符串
  String? dish_count_text;
  /// ecs
  int? ecs;
  /// editable
  int? editable;
  /// 能量: 千卡
  int? energy;
  /// 收藏数量字符串
  String? favo_counts_text;
  /// hq
  int? hq;
  /// 是否有礼物
  int? ishaveGoods;
  /// 做饭食材
  List<MajorListModel>? major;
  /// 营养数组
  List<NutritionFactsModel>? nutrition_facts;
  /// 营养文字描述
  String? nutrition_facts_hint_text;
  /// 营养详情分析
  String? nutrition_facts_url;
  /// 饭菜图片(头部使用)原图
  String? original_photo_path;
  /// 饭菜图片(头部使用)处理过的图
  String? photo_path;
  /// 图片高度
  String? ph;
  /// 图片宽度
  String? pw;
  /// 发布时间
  String? release_time;
  /// 小图
  String? thumb_path;
  /// 小贴士
  String? tips;
  /// 标题
  String? title;
  /// 作者
  UserModel? user;
  /// vc
  int? vc;
  /// 浏览量
  String? views_count_text;
  /// 视频
  String? vfurl;
  String? video_url;



  RecipeBigModel(this.title,this.comments_count_text,this.as,this.collect_status,this.comments_count,this.comments_preceded,
      this.cook_difficulty,this.cook_difficulty_image,this.cook_difficulty_text,this.cook_id,this.cook_tags,
      this.cook_time,this.cookstep,this.cookstory,this.create_time,this.dish_count,this.dish_count_text,this.ecs,
      this.editable,this.energy,this.favo_counts_text,this.hq,this.ishaveGoods,this.major,this.nutrition_facts,this.nutrition_facts_hint_text,
      this.nutrition_facts_url,this.original_photo_path,this.ph,this.photo_path,this.pw,this.thumb_path,this.release_time,
      this.tips,this.user,this.vc,this.views_count_text,this.vfurl,this.video_url);
  factory RecipeBigModel.fromJson(Map<String,dynamic> json) => _$RecipeBigModelFromJson(json);
  Map<String, dynamic> toJson() => _$RecipeBigModelToJson(this);

}